<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="webjars/jquery/3.3.1/jquery.js"></script>
    <!--<script src="/jquery.js"></script>-->
</head>
<body>
    <h1>前台页面</h1>
    <p id="info"></p>

    <script>
        $.ajax({
            url:'http://localhost:8080/hello',
            type:"post",
            success:function (data) {
                $("#info").html("收到的数据："+data)
            },
            error:function (data) {
                $("#info").html("跨域失败"+data)
            }
        })
    </script>

</body>
</html>